﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using RG.Common.WPF.Dialogs;
using RG.Consts;
using RealtorGuide.Classes;

namespace RG.Frames
{
    public class ApartmentsEditorVM
    {
        public IUnityContainer Cfg { get; set; }

        [Dependency]
        public IManagerService ManagerSrv { get; set; }

        public List<Manager> Managers { get; set; }

        //        public 

        [InjectionConstructor]
        public ApartmentsEditorVM(IUnityContainer cfg)
        {
            Cfg = cfg;

            ManagerSrv = Cfg.Resolve<IManagerService>();
            Managers = ManagerSrv.List(new ManagersQueryParams());
        }
    }
}
